@model ProjectCodeS.Models.Client

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Client</legend>

    <div class="display-label">FirstName</div>
    <div class="display-field">@Model.FirstName</div>

    <div class="display-label">LastName</div>
    <div class="display-field">@Model.LastName</div>

    <div class="display-label">Phone</div>
    <div class="display-field">@Model.Phone</div>

    <div class="display-label">Created</div>
    <div class="display-field">@String.Format("{0:g}", Model.Created)</div>

    <div class="display-label">LastEdited</div>
    <div class="display-field">@String.Format("{0:g}", Model.LastEdited)</div>

    <div class="display-label">LastAccessed</div>
    <div class="display-field">@String.Format("{0:g}", Model.LastAccessed)</div>

    <div class="display-label">Store</div>
    <div class="display-field">@(Model.Store == null ? "None" : Model.Store.Name)</div>

    <div class="display-label">Tickets</div>
    <div class="display-field">@(Model.Tickets == null ? "None" : Model.Tickets.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


